﻿<UserControl x:Class="PrintScreens.ParentalConsentForm"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
    Height="1123.2" Width="797.8">
    <!--Size based on size of a sheet of A4-->
    <UserControl.Resources>
        <ResourceDictionary Source="Styles.xaml"/>
    </UserControl.Resources>
    <!--Printers don't usually print right to the edge-->
    <Grid Margin="30">
        <StackPanel>
            <TextBlock Style="{StaticResource PageHeading}">
                <Run>Parental Consent for</Run>
                <Run x:Name="txtName"/>
            </TextBlock>
            <TextBlock Style="{StaticResource BodyText}">I wish my child to be allowed to take part in the following Shepperton Slalom Canoe Club Activities (tick as applicable):</TextBlock>
            <ItemsControl>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <Rectangle Margin="5" Width="20" Height="20" VerticalAlignment="Top" Fill="Transparent" Stroke="Black"/>
                            <TextBlock VerticalAlignment="Center" Grid.Column="1" Text="{Binding }" TextWrapping="Wrap" Margin="0,0,0,0"></TextBlock>
                        </Grid>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
                <ItemsControl.Items>
                    <sys:String>Training and fun sessions under the supervision of experienced paddlers or qualified coaches on  the Thames and Wey Navigation</sys:String>
                    <sys:String>Moving water training at Shepperton Weir</sys:String>
                </ItemsControl.Items>
            </ItemsControl>
            <TextBlock FontWeight="Bold" Style="{StaticResource BodyText}">I have ensured that my child understands that it is important for his/her safety and for the safety of the group that any rules and any instructions given by the coaches in charge are obeyed instantly.</TextBlock>
            <Line X1="0" X2="1" Stretch="Fill" />
            <TextBlock  Style="{StaticResource BodyText}">
                <Run>My child</Run>
                <Run x:Name="txtCanCannotSwim"/>
                <Run>swim 50m in light clothing.</Run>
            </TextBlock>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <TextBlock  Style="{StaticResource BodyText}">
                    <Run>Doctor's Name:</Run>
                    <Run x:Name="txtDoctorName"/>
                </TextBlock>
                <TextBlock  Style="{StaticResource BodyText}" Grid.Column="1">
                    <Run>Doctor's Telephone:</Run>
                    <Run x:Name="txtDoctorTelephone"/>
                </TextBlock>
            </Grid>
            <TextBlock Style="{StaticResource BodyText}">
                I confirm to the best of my knowledge that my son/daughter does not suffer from any medical condition other than those entered and listed below.  In your child’s interest, it is important that the organising staff should know if he or she suffers from any illness or medical condition. Please ensure that you have entered, in confidence, any health or other matter concerning your child of which accompanying club members should be aware. Please also indicate if your child is receiving medication, with details and dosage.
            </TextBlock>
            <TextBlock  Style="{StaticResource BodyText}">Medical Conditions:</TextBlock>
            <Border MinHeight="50" Margin="2">
                <TextBlock Name="txtMedical"   Style="{StaticResource BodyText}" Margin="3"/>
            </Border>
            <TextBlock  Style="{StaticResource BodyText}" FontWeight="Bold">
                Please read carefully before signing:
            </TextBlock>
            <ItemsControl x:Name="BulletPoints">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <Ellipse Margin="5" Width="8" Height="8" VerticalAlignment="Top" Fill="Black" Stroke="Black"/>
                            <TextBlock Grid.Column="1" Text="{Binding }" TextWrapping="Wrap" Margin="0,0,0,0"></TextBlock>
                        </Grid>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
            <Grid Margin="0,20">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="2*"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock>
                        <Run>Signature (Parent/Legal Guardian)</Run>
                </TextBlock>
                <Line Grid.Column="1" X1="0" X2="1" Margin="4" StrokeThickness="2" Stretch="Fill" VerticalAlignment="Bottom" HorizontalAlignment="Stretch"/>
                <TextBlock Grid.Column="2">Date</TextBlock>
                <Line Grid.Column="3" X1="0" X2="1" Margin="4" StrokeThickness="2" Stretch="Fill" VerticalAlignment="Bottom" HorizontalAlignment="Stretch"/>
            </Grid>
        </StackPanel>
    </Grid>
</UserControl>
